﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/App.Master" Inherits="System.Web.Mvc.ViewPage" %>

<%@ Import Namespace="Ornament.Web.DashBoard" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="lPanel" class=" panel ui-widget ui-widget-content ui-corner-all">
        <div class="ui-widget-header ui-corner-all">
            角色
        </div>
        <%Html.RenderPartial("~/Areas/MemberShips/Views/Role/RolesSelector.ascx");%>
    </div>
    <div id="rPanel">
        <%
            var shotcuts = Ornament.Web.OrnamentContext.Current.WebFactory.ShortcutDao.GetAll();            
        %>
        <ul>
            <%foreach (Shortcut sc in shotcuts)
              {%>
            <li>
                <div class="ShortcutShow">
                    <div id="picture">
                        <img src="<%=sc.Url%>" />
                    </div>
                    <div id="content" class="cssform">
                        <p>
                            <label>
                                内容:</label>
                            <label class="data">
                                <%=sc.Text %></label>
                        </p>
                        <p>
                            <label>
                                提示:</label>
                            <label class="data">
                                <%=sc.Tooltip%></label>
                        </p>
                        <div>
                            <input class="selectShortcut" id="<%=sc.Id %>" type="checkbox" value="<%=sc.Id %>" />
                            <label for="<%=sc.Id %>">
                                选择</label>
                            <input class="edit" type="button" />
                        </div>
                    </div>
                    <div style="clear: both">
                    </div>
                </div>
            </li>
            <%} %>
        </ul>
    </div>
    <div class="ui-helper-clearfix">
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        #lPanel
        {
            float: left;
            width: 200px;
        }
        #rPanel
        {
            float: left;
        }
        .ShortcutShow
        {
            border: solid 1px #ccc;
        }
        .ShortcutShow #picture
        {
            float: left;
        }
        .ShortcutShow #content
        {
            float: left;
        }
        .cssform label
        {
            width: auto;
        }
    </style>

    <script type="text/javascript">
        $(document).ready(function() {
            $(".selectShortcut").button();


        });
    </script>

</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="PageTitle" runat="server">
    快捷键设定
</asp:Content>
